<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
  <title>JSPWiki Test Logout</title>
</head>
<body> 
<table cellpadding="1" cellspacing="1" border="1">
	<tbody>
	<tr><td rowspan="1" colspan="3">JSPWiki Test Logout<br></td></tr>

	<tr><td>store</td>	<td>/@selenium.context@</td>	<td>baseUrl</td></tr>
	<tr><td>store</td>	<td>${baseUrl}/Wiki.jsp?page=Main</td>	<td>url</td></tr>
	<tr><td>store</td>	<td>${baseUrl}/Login.jsp</td>			<td>loginurl</td></tr>
	<tr><td>store</td>	<td>janne</td>			<td>TestUsername</td></tr>
    <tr><td>store</td>	<td>myP@5sw0rd</td>		<td>TestPassword</td></tr>
	<tr><td>store</td>	<td>Janne\+Jalkanen</td>	<td>wikiname</td></tr>

	<!-- Start at front page: try to log in -->
    <tr><td>open</td>	<td>${loginurl}</td>	<td>&nbsp;</td></tr>

    <tr><td>type</td>	<td>j_username</td>	<td>${TestUsername}</td></tr>
    <tr><td>type</td>	<td>j_password</td>	<td>${TestPassword}</td></tr>

    <tr><td>clickAndWait</td>	<td>submitlogin</td>	<td>&nbsp;</td></tr>

    <tr><td>verifyTextNotPresent</td>	<td>Please sign in</td>	<td>&nbsp;</td></tr>
    <tr><td>verifyTextPresent</td>		<td>G&#8217;day</td>	<td>&nbsp;</td></tr>
    <tr><td>verifyTextPresent</td>		<td>(authenticated)</td><td>&nbsp;</td></tr>

    <tr><td>assertCookie</td>	<td>regex:JSPWikiAssertedName=${wikiname}</td>	<td></td></tr>

    <!-- Log out; we should NOT see any asserted identities -->
    <tr><td>assertElementPresent</td>	<td>link=Log out</td>	<td></td></tr>
    <tr><td>clickAndWait</td>			<td>link=Log out</td> 	<td>&nbsp;</td></tr>

    <tr><td>verifyTextPresent</td>	<td>G&#8217;day (anonymous guest)</td>	<td>&nbsp;</td></tr>
    <tr><td>verifyTitle</td>		<td>JSPWiki: Main</td>	<td>&nbsp;</td></tr>

    <tr><td>assertNotCookie</td>	<td>regex:JSPWikiAssertedName=${wikiname}</td>	<td></td></tr>
    
	</tbody>
</table>

</body>
</html>
